package net.csdn.business.common.domain.mirror;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.csdn.business.common.domain.common.ConditionQueryDto;
import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProjectMirrorDataQueryDto implements Serializable {
    private Integer status;

    private Integer syncStatus;

    private String statusStr;

    private String syncStatusStr;

    private Long projectId;

    private String repoPath;

    private String fullPath;

    private String mirrorUrl;
    private String createStartDate;
    private String createEndDate;

    private Date nextExecutionAt;

    private Date nextSyncExecutionAt;

    private Long nextMinId;

    private Integer userType;

    private Integer type;

    private Integer isSync;

    private boolean searchCount = true;

    private ConditionQueryDto.Order order;

    private int pageNum = 1;

    @Range(min = 1, max = 100, message = "pageSize 不合法")
    private int pageSize = 10;
}